import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class ButtonListener implements MouseListener {
    boolean if_read=false;

    public boolean isIf_read() {
        return if_read;
    }

    public void setIf_read(boolean if_read) {
        this.if_read = if_read;
    }


    @Override
    public void mouseClicked(MouseEvent e) {
        setIf_read(true);
    }

    @Override
    public void mousePressed(MouseEvent e) {

    }

    @Override
    public void mouseReleased(MouseEvent e) {

    }

    @Override
    public void mouseEntered(MouseEvent e) {

    }

    @Override
    public void mouseExited(MouseEvent e) {

    }

}
